package com.fuxian.service.impl;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Repository;
import com.fuxian.dao.TeacherLessonDao;
import com.fuxian.model.Teacherlessons;
import com.fuxian.service.TeacherLessonService;

@Repository
public class TeacherLessonServiceImpl implements TeacherLessonService {

	@Resource
	private TeacherLessonDao teacherLessonDao;
	public void addTeacherLesson(Teacherlessons teacherlessons) {
	teacherLessonDao.addTeacherLesson(teacherlessons);

	}

	public void deleteTeacherLessonById(int teacher_id,int lesson_id) {
teacherLessonDao.deleteTeacherLessonById(teacher_id,lesson_id);
	}

	public void modifyTeacherLesson(Teacherlessons teacherlessons) {
teacherLessonDao.modifyTeacherLesson(teacherlessons);
	}

	public List<Teacherlessons> selectAllTeacherLessons(int start, int size) {
		return teacherLessonDao.selectTeacherLesson(start, size);
	}

	public List<Teacherlessons> selectTeacherLessonsByTeacherId(int teacherId) {
		return teacherLessonDao.selectTeacherLesson(teacherId);
	}

	public List<Teacherlessons> selectTeacherLessonsByLessonId(int lessonId) {
		
		return teacherLessonDao.selectTeacherLessonByLessonId(lessonId);
	}

}
